<%@ page language="java" contentType="text/html; charset=ISO-8859-1"
	pageEncoding="ISO-8859-1"%>
<%@taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
<meta name="viewport" content="width=device-width; initial-scale=1; user-scalable=no">
<title>Pheat</title>
<c:if test="${not empty UsuarioLogado}">
	<c:redirect url="logado.jsp" />
</c:if>
</head>
<link rel="stylesheet" type="text/css" href="style.css">
<style>
input {
	width: 200px;
	}
</style>
<body>
<c:import url="menu.jsp" />
<center>
		<form action="Logar" method="POST" style="margin-top: 20px;">			
			<c:if test="${param.m=='c'}">
				<b> Cadastro realizado com sucesso!</b><br/>
			</c:if>&nbsp;		
			<table  width="220px">				
				<tr>
					<td colspan="2">Usu&aacute;rio:</td>
				</tr>
				<tr>
					<td colspan="2"><input type="text" name="login"
						value="marcos" /></td>
				</tr>
				<tr>
					<td colspan="2">Senha:</td>
				</tr>
				<tr>
					<td colspan="2"><input type="password" name="senha" value="123456" /></td>
				</tr>
				<tr>
					<td colspan="2">
						<c:if test="${param.m=='e'}">
							Usu&aacute;rio ou Senha inv&aacute;lidos.
						</c:if>&nbsp;
					</td>
				</tr>
				<tr>
					<td align="right"><input type="submit" value="Logar" /></td>
					<td align="left"><input type="button"
						onclick="javascript:window.location='registrar.jsp'"
						value="Registrar" /></td>
				</tr>
			</table>
		</form>
	</center>
<c:import url="rodape.jsp" />
</body>
</html>